package com.ruoyi.common.sys.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.sys.dao.SysDictDataMapper;
import com.ruoyi.common.sys.entity.SysDictData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 字典Service类
 *
 * @author tanxingxian
 * @date 2021-12-27 11:21
 */
@Service
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements SysDictDataService {

    @Autowired
    private SysDictDataMapper sysDictDataMapper;

    /**
     * 根据字典类型获取字典数据列表
     */
    @Override
    public List<Map<String, Object>> getDataList(String dictType) {
        return sysDictDataMapper.getDataList(dictType);
    }
}
